<script src="/javascripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="/javascripts/mce_editor.js" type="text/javascript"></script>

<div class='form'>
  <% form_for @category,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="category_name">名称</label>
      <%= f.text_field :name %>
    </p>

     <p>
      <label for="category_x">x</label>
      <%= f.text_field :x %>
    </p>

     <p>
      <label for="category_y">y</label>
      <%= f.text_field :y %>
    </p>

    <p>
      <label for="category_description">描述</label>
      <%= f.text_area :description,:class =>"mce-editor" %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>

  <% end %>
</div>